package com.levtech.moviemanager.movie;

public class Movie
{
	
	private String title, 
				   description,
				   genre, 
				   format, 
				   cast, 
				   studio;
	
	public Movie(){}
	
	public Movie(String title, String desc, String genre, String format, 
			String cast, String studio)
	{
		this.title = title;
		this.description = desc;
		this.genre = genre;
		this.format = format;
		this.cast = cast;
		this.studio = studio;
	}

	public String getTitle()
	{
		if(title.equals(""))
			return null;
		return title;
	}

	public String getDescription()
	{
		if(description.equals(""))
			return null;
		return description;
	}

	public String getGenre()
	{
		if(genre.equals(""))
			return null;
		return genre;
	}

	public String getFormat()
	{
		if(format.equals(""))
			return null;
		return format;
	}

	public String getCast()
	{
		if(cast.equals(""))
			return null;
		return cast;
	}

	public String getStudio()
	{
		if(studio.equals(""))
			return null;
		return studio;
	}

	public void setTitle(String title)
	{
		this.title = title;
	}

	public void setDescription(String description)
	{
		this.description = description;
	}

	public void setGenre(String genre)
	{
		this.genre = genre;
	}

	public void setFormat(String format)
	{
		this.format = format;
	}

	public void setCast(String cast)
	{
		this.cast = cast;
	}

	public void setStudio(String studio)
	{
		this.studio = studio;
	}
	
	public String toString()
	{
		return "Description:\n" + this.description + 
				"\nStudio:\n" + this.studio + 
				"\nGenre:\n" + this.genre +
				"\nFormat:\n" + this.format;
	}

}
